package com.yijumao.shop.mapper;

import com.yijumao.shop.domain.Orders;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface OrdersMapper {
    int deleteByPrimaryKey(String oid);

    int insert(Orders record);

    Orders selectByPrimaryKey(String oid);

    List<Orders> selectAll();

    int updateByPrimaryKey(Orders record);

    //查询某用户的所有订单
    List<Orders> selectByUid(Integer uid);
}